import { Auth } from '../store/models/auth'

export function isAuth(): boolean | Auth {
  const token = localStorage.getItem('token')
  return token ? JSON.parse(token) : false
}
